package com.nubia.dao;
import com.nubia.entity.Shops;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface ShopsDao {
    /**
     * selectAllShops 所有人获取 所有商品列表
     * @return
     */
    List<Shops> selectAllShops();


    /**
     * insertShop 插入新的商品
     * @return
     */
    int insertShop(Shops shops);

    Shops GetShopById(String shop_id);








    /**
     * updateCart 添加个人购物车 根据userid shopid
     * @return
     */
    int updateCart(Shops shops);


    /**
     * ByShopShowCart 根据userid 获取商品列表
     * @return
     */
    List<Shops> ByShopShowCart(String user_id);


    /**
     *添加一条商品进入商品表
     *
     */
    int insertOneShop( Shops shops);
}
